package com.tanjun.mallservice.apiservice.enums.plu;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 商品图片类型
 */
@AllArgsConstructor
@Getter
public enum PluImgTypeEnum  {
    PLU(1, "商品"),
    SKU(2, "规格"),

    ;
    @JsonValue
    private Integer type;
    private String typeName;

    /**
     * 枚举数据库存储值
     */
    public Integer getValue() {
        return this.type;
    }
}
